<% layout('/layouts/default.html', {title: 'test_user管理', libs: ['validate','fileupload']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header with-border">
			<div class="box-title">
				<i class="fa fa-list-alt"></i> ${testUser.isNewRecord ? '新增test_user' : '编辑test_user'}
			</div>
			<div class="box-tools pull-right">
				<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
			</div>
		</div>
		<#form:form id="inputForm" model="${testUser}" action="${ctx}/test/testUser/save" method="post" class="form-horizontal">
			<div class="box-body">
				<div class="form-unit">基本信息</div>
				<div class="row">
				<div class="form-unit">扩展字段</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 1：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:radio path="extend.extendS1" dictType="sys_status" class="form-control" />
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 2：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:select path="extend.extendS2" dictType="sys_menu_sys_code" blankOption="true" class="form-control" />
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 3：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendS3" maxlength="500" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 4：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendS4" maxlength="500" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 5：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendS5" maxlength="500" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 6：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendS6" maxlength="500" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 7：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendS7" maxlength="500" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 String 8：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendS8" maxlength="500" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Integer 1：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendI1" class="form-control digits"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Integer 2：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendI2" class="form-control digits"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Integer 3：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendI3" class="form-control digits"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Integer 4：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendI4" class="form-control digits"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Float 1：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendF1" class="form-control number"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Float 2：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendF2" class="form-control number"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Float 3：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendF3" class="form-control number"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Float 4：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendF4" class="form-control number"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Date 1：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendD1" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Date 2：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendD2" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Date 3：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendD3" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 扩展 Date 4：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="extend.extendD4" class="form-control"/>
							</div>
						</div>
					</div>
				<#form:hidden path="id"/>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 姓名：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="name" maxlength="255" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 编号：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:input path="code" maxlength="255" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2">图片上传：</label>
							<div class="col-sm-10">
								<#form:fileupload id="uploadImage" bizKey="${testUser.id}" bizType="testUser_image"
									uploadType="image" class="" readonly="false"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2">附件上传：</label>
							<div class="col-sm-10">
								<#form:fileupload id="uploadFile" bizKey="${testUser.id}" bizType="testUser_file"
									uploadType="all" class="" readonly="false"/>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="box-footer">
				<div class="row">
					<div class="col-sm-offset-2 col-sm-10">
						<% if (hasPermi('test:testUser:edit')){ %>
							<button type="submit" class="btn btn-sm btn-primary" id="btnSubmit"><i class="fa fa-check"></i> 保 存</button>&nbsp;
						<% } %>
						<button type="button" class="btn btn-sm btn-default" id="btnCancel" onclick="js.closeCurrentTabPage()"><i class="fa fa-reply-all"></i> 关 闭</button>
					</div>
				</div>
			</div>
		</#form:form>
	</div>
</div>
<% } %>
<script>
$("#inputForm").validate({
	submitHandler: function(form){
		js.ajaxSubmitForm($(form), function(data){
			js.showMessage(data.message);
			if(data.result == Global.TRUE){
				js.closeCurrentTabPage(function(contentWindow){
					contentWindow.page();
				});
			}
		}, "json");
    }
});
</script>